[Common]
//+++++++++++++++++++++++++++++++
//----VERZEICHNISSE | DIRECTORIES
//+++++++++++++++++++++++++++++++
// Windows Vista, 7, 8/8.1, 10/11
// ------------------------------
DirCopy,%Install_Sys%\icsxml,			%Target_Sys%\icsxml
DirCopy,%Install_Sys%\networklist,		%Target_Sys%\networklist
DirCopy,%Install_Sys%\wbem\Repository,	%Target_Sys%\wbem\Repository
DirCopy,%Install_win%\L2Schemas,		%target_win%\L2Schemas
DirCopy,%Install_win%\PLA,				%target_win%\PLA
DirCopy,%Install_win%\schemas,			%target_win%\schemas
// Windows Vista
// -------------
If,%NT%,<,6.1,Then
	DirCopy,%Install_win%\Provisioning\schemas,%target_win%\Provisioning\schemas
End

//+++++++++++++++++++
//----DATEIEN | FILES
//+++++++++++++++++++
FileCopy,%Install_Sys%\wbem\*.*,			%Target_Sys%\wbem
FileCopy,%Install_Sys%\wbem\%DistLang%\*.*,	%Target_Sys%\wbem\%DistLang%

// Windows 8/8.1
// -------------
If,%NT%,=,6.2,OR,%NT%,=,6.3,Then
	FileCopy,%Install_Sys%\wdi\perftrack\Wlansvc.ptxml,	%Target_Sys%\wdi\perftrack
	FileCopy,%Install_Sys%\migration\netiomig.dll,		%Target_Sys%\migration
End

SetReqFile,%Install_sys%,%DistLang%,%FallBack%,%target_sys%

// +++
// DLL
// +++
// Windows Vista, 7, 8/8.1, 10/11
// ------------------------------
ReqFile,authfwcfg.dll,1
ReqFile,authfwgp.dll,1
ReqFile,authfwwizfwk.dll,1
ReqFile,bfe.dll,1
If,ExistFile,%Install_sys%\browser.dll,Then,		ReqFile,browser.dll,1
ReqFile,Certenc.dll,1
ReqFile,cmifw.dll
ReqFile,comsvcs.dll
ReqFile,connect.dll,1
ReqFile,credssp.dll
ReqFile,cryptnet.dll
ReqFile,cryptui.dll,1
ReqFile,DfsShlEx.dll,1
ReqFile,dhcpcmonitor.dll,1
ReqFile,dhcpsapi.dll,1
ReqFile,dnsrslvr.dll,1
ReqFile,dot3api.dll,1
ReqFile,dot3cfg.dll,1
ReqFile,dot3dlg.dll,1
ReqFile,dot3gpclnt.dll,1
ReqFile,dot3gpui.dll,1
ReqFile,dot3msm.dll,1
ReqFile,dot3svc.dll,1
ReqFile,dot3ui.dll,1
ReqFile,dtsh.dll,1
ReqFile,eapp3hst.dll
ReqFile,eappcfg.dll,1
ReqFile,eappgnui.dll,1
ReqFile,eapphost.dll,1
ReqFile,eappprxy.dll
ReqFile,eapsvc.dll,1
ReqFile,fdProxy.dll
ReqFile,fdWCN.dll
ReqFile,fontext.dll,1
ReqFile,fundisc.dll,1
ReqFile,fwcfg.dll,1
ReqFile,fwremotesvr.dll
ReqFile,gptext.dll,1
ReqFile,hnetcfg.dll,1
ReqFile,hnetmon.dll,1
ReqFile,httpapi.dll,1
ReqFile,icfupgd.dll
ReqFile,icmp.dll
ReqFile,icsigd.dll,1
ReqFile,IKEEXT.dll,1
ReqFile,inetcomm.dll
ReqFile,iologmsg.dll,1
ReqFile,ipnathlp.dll,1
ReqFile,iprtprio.dll
ReqFile,iprtrmgr.dll,1
ReqFile,ipsecsnp.dll,1
ReqFile,keyiso.dll,1
ReqFile,keymgr.dll,1
ReqFile,l2gpstore.dll
ReqFile,l2nacp.dll,1
ReqFile,lmhsvc.dll,1
ReqFile,mprddm.dll,1
ReqFile,mprdim.dll,1
ReqFile,mprmsg.dll,1
ReqFile,mpssvc.dll,1
ReqFile,msafd.dll
ReqFile,msaudite.dll,1
ReqFile,msi.dll
ReqFile,msutb.dll,2
ReqFile,msxml6.dll
ReqFile,msxml6r.dll,1
ReqFile,ncsi.dll,1
ReqFile,ndfapi.dll,1
ReqFile,ndfetw.dll
If,ExistFile,%Install_sys%\ndiscapCfg.dll,Then,				ReqFile,ndiscapCfg.dll
ReqFile,ndishc.dll,1
If,ExistFile,%Install_sys%\NdisImPlatformNetCfg.dll,Then,	ReqFile,NdisImPlatformNetCfg.dll
ReqFile,netcenter.dll,1
ReqFile,netcfgx.dll,1
ReqFile,netevent.dll,1
ReqFile,neth.dll,1
ReqFile,netid.dll,1
ReqFile,netiohlp.dll,1
ReqFile,netlogon.dll,1
ReqFile,netman.dll,1
ReqFile,netplwiz.dll,1
ReqFile,netshell.dll,2
ReqFile,networkexplorer.dll,2
ReqFile,networkitemfactory.dll,1
If,ExistFile,%Install_sys%\networkstatus.dll,Then,			ReqFile,networkstatus.dll
ReqFile,nlaapi.dll
If,ExistFile,%Install_sys%\nlasvc.dll,Then,					ReqFile,nlasvc.dll,1
ReqFile,nlmsprep.dll
ReqFile,npmproxy.dll
ReqFile,ntshrui.dll,1
ReqFile,onex.dll,1
ReqFile,pnidui.dll,1
ReqFile,puiapi.dll,1
If,ExistFile,%Install_sys%\rascfg.dll,Then,					ReqFile,rascfg.dll,1
ReqFile,rasmm.dll,1
ReqFile,rtm.dll,1
ReqFile,samsrv.dll,1
ReqFile,seclogon.dll,1
ReqFile,sens.dll,1
ReqFile,shacct.dll
ReqFile,shpafact.dll
ReqFile,shsvcs.dll,1
ReqFile,shwebsvc.dll,1
ReqFile,SMBHelperClass.dll,1
ReqFile,srvsvc.dll,1
ReqFile,sscore.dll,1
ReqFile,tapi32.dll
ReqFile,tcpipcfg.dll,1
ReqFile,tcpmib.dll
ReqFile,van.dll,1
ReqFile,wcncsvc.dll,1
ReqFile,wcnwiz.dll,2
ReqFile,webcheck.dll,1
ReqFile,wfapigp.dll
ReqFile,winhttp.dll
ReqFile,winipsec.dll
ReqFile,winrnr.dll
ReqFile,WinSCard.dll
ReqFile,winsockhc.dll,1
ReqFile,wlanapi.dll,1
ReqFile,wlancfg.dll,1
ReqFile,wlanconn.dll,1
ReqFile,wlandlg.dll,1
ReqFile,wlangpui.dll,1
ReqFile,wlanhc.dll,1
ReqFile,wlanhlp.dll
ReqFile,wlanmm.dll,1
ReqFile,wlanmsm.dll
ReqFile,wlanpref.dll,1
ReqFile,wlansec.dll
ReqFile,wlansvc.dll,1
ReqFile,wlanui.dll,1
ReqFile,wlanutil.dll,1
ReqFile,wlgpclnt.dll,1
ReqFile,wmi.dll
ReqFile,ws2help.dll
ReqFile,wshelper.dll,1
ReqFile,wshqos.dll,1
ReqFile,xwizards.dll,1
ReqFile,xwreg.dll
ReqFile,xwtpw32.dll,1
// Windows Vista
// -------------
If,%NT%,=,6.0,Then
	ReqFile,netrap.dll
End
// Windows Vista, 7
// ----------------
If,%NT%,<,6.2,Then
	ReqFile,netprof.dll
End
// Windows Vista, 7, 8/8.1
// -----------------------
If,Not,%NT%,=,10.0,Then
	ReqFile,dhcpqec.dll,1
	ReqFile,EAPQEC.dll,1
	ReqFile,wlaninst.dll
End
// Windows 7, 8/8.1
// ----------------
If,%NT%,>,6.0,AND,%NT%,<,10.0,Then
	ReqFile,wwaninst.dll
End
// Windows 7, 8/8.1, 10/11
// -----------------------
If,%NT%,>,6.0,Then
	ReqFile,cngprovider.dll,1
	ReqFile,dhcpcore.dll,1
	ReqFile,dhcpcore6.dll,1
	ReqFile,dot3hc.dll,1
	ReqFile,dwrite.dll
	ReqFile,firewallcontrolpanel.dll,1
	ReqFile,hgcpl.dll,1
	ReqFile,netbios.dll
	ReqFile,ndfhcdiscovery.dll
	ReqFile,nlahc.dll,1
	ReqFile,nlmgp.dll,1
	ReqFile,nshwfp.dll,1
	ReqFile,oleacchooks.dll
	ReqFile,onexui.dll,1
	ReqFile,rasmbmgr.dll
	ReqFile,sstpsvc.dll,1
	ReqFile,wbiosrvc.dll
	ReqFile,WcnApi.dll
	ReqFile,WcnEapAuthProxy.dll
	ReqFile,WcnEapPeerProxy.dll
	ReqFile,WcnNetsh.dll,1
	ReqFile,webio.dll
	ReqFile,werui.dll,1
	ReqFile,WfHC.dll,1
	ReqFile,winbio.dll
	if,%WIM_BUILD%,<=,22000,then,ReqFile,wwanmm.dll,1
	ReqFile,xwtpdui.dll,1
End
// Windows 8/8.1
// -------------
If,%NT%,=,6.2,OR,%NT%,=,6.3,Then
	ReqFile,ndisimplatform.dll
	ReqFile,netprofm.dll
End

// Windows 8/8.1, 10/11
// --------------------
If,%NT%,>,6.1,Then
	ReqFile,cngcredui.dll,1
	ReqFile,cryptcatsvc.dll
	ReqFile,damm.dll,1
	ReqFile,dot3mm.dll,1
	ReqFile,ieadvpack.dll,1
	ReqFile,mprext.dll,1
	ReqFile,ncaapi.dll
	ReqFile,mi.dll,1
	ReqFile,netprofmsvc.dll,1
	ReqFile,nlmproxy.dll
	ReqFile,provcore.dll,1
	ReqFile,RMapi.dll,1
	ReqFile,setnetworklocation.dll,1
	ReqFile,simauth.dll,1
	ReqFile,simcfg.dll,1
	ReqFile,smbwmiv2.dll,1
	ReqFile,sscoreext.dll,1
	ReqFile,ttlsauth.dll,1
	ReqFile,ttlscfg.dll,1
	ReqFile,wcmapi.dll
	ReqFile,wcmcsp.dll
	ReqFile,wcmsvc.dll,1
	ReqFile,Windows.Globalization.dll,1
	ReqFile,wkspbrokerax.dll,1
	ReqFile,wksprtps.dll
	ReqFile,wlanradiomanager.dll
	ReqFile,wmiclnt.dll
	ReqFile,wwanradiomanager.dll
End
// Windows 8.1, 10/11
// ------------------
If,%NT%,>,6.2,Then
	ReqFile,Dot3Conn.dll,1
	ReqFile,eapprovp.dll
	ReqFile,wlansvcpal.dll
End
// Windows 10/11
// -------------
If,%NT%,=,10.0,Then
	If,ExistFile,%Install_sys%\credprovslegacy.dll,Then,	ReqFile,credprovslegacy.dll,1
	If,ExistFile,%Install_sys%\eappcfgui.dll,Then,			ReqFile,eappcfgui.dll,1
	If,ExistFile,%Install_sys%\NetworkUXBroker.dll,Then,	ReqFile,NetworkUXBroker.dll
	If,ExistFile,%Install_sys%\nlasvc.dll,Then,				ReqFile,nlasvc.dll,1

	ReqFile,CoreMessaging.dll,1
	ReqFile,credprovhost.dll,1
	ReqFile,credprovs.dll,1
	ReqFile,fwbase.dll
	ReqFile,fwpolicyiomgr.dll
	ReqFile,msvcp110_win.dll
	ReqFile,winnlsres.dll,1
	ReqFile,WlanMediaManager.dll

	If,%WIM_BUILD%,=>,17134,Then,ReqFile,mobilenetworking.dll
	If,%WIM_BUILD%,<,17763,Then
		ReqFile,joinutil.dll
		ReqFile,KerbClientShared.dll
		ReqFile,netprovfw.dll	
	End

	Wim,Extract,File,%Install_sys%\Recovery\winre.wim,1,Windows\System32\catroot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\WinPE-WiFi-Package*,%TargetDir%
End

// ++++++++++++++++++++++++++++++
// SONSTIGE DATEIEN | OTHER FILES
// ++++++++++++++++++++++++++++++
// Windows Vista, 7, 8/8.1, 10/11
// ------------------------------
ReqFile,firewall.cpl
ReqFile,inetcpl.cpl,2
ReqFile,ncpa.cpl,1
ReqFile,telephon.cpl,1

ReqFile,xwizard.dtd

ReqFile,Certutil.exe,1
ReqFile,ipconfig.exe,1
ReqFile,icsunattend.exe
ReqFile,nbtstat.exe,1
ReqFile,netbtugc.exe,1
ReqFile,netcfg.exe,1
ReqFile,netiougc.exe,1
ReqFile,netplwiz.exe,1
ReqFile,netsh.exe,1
ReqFile,sc.exe
ReqFile,shrpubw.exe,2
ReqFile,tcpsvcs.exe
ReqFile,wlanext.exe,1
// Windows Vista
// -------------
If,%NT%,=,6.0,Then
	ReqFile,FirewallControlPanel.exe
End

FileCopy,%Install_sys%\wbem\wlan.mof,			%target_sys%\wbem\
//FileCopy,%Install_sys%\wbem\firewallapi.mof,	%target_sys%\wbem\
If,existfile,%Install_sys%\wbem\nlasvc.mof,Then,FileCopy,%Install_sys%\Wbem\nlasvc.mof,%target_sys%\wbem\

ReqFile,ndfeventview.xml
// Windows 7, 8/8.1, 10/11
// -----------------------
If,%NT%,>,6.0,Then
	ReqFile,eap3host.exe
	ReqFile,xwizard.exe,1
End

// ++++++++++++++++++++++++++
// ARCHITEKTUR | ARCHITECTURE
// ++++++++++++++++++++++++++
If,%Arch%,=,x86,Then
	ReqFile,lanman.drv
	ReqFile,msscript.ocx,1
	ReqFile,msvcrt20.dll
	ReqFile,olecli32.dll,1
	ReqFile,olethk32.dll
	ReqFile,wshnetbs.dll
Else
	SetReqFile,%Install_wow%,%Distlang%,%FallBack%,%target_wow%
	ReqFile,msscript.ocx,1
	ReqFile,msvcrt20.dll
	ReqFile,olecli32.dll,1
	ReqFile,olethk32.dll
End

//+++++++++++++++++++++
//----TREIBER | DRIVERS
//+++++++++++++++++++++
// Inf-Dateien | Inf files
// +++++++++++++++++++++++
SetReqFile,%Install_win%\inf,%Distlang%,%FallBack%,%target_win%\inf
// Windows Vista, 7, 8/8.1, 10/11
// ------------------------------
ReqFile,netnwifi.inf

GetDistLang,%DistTmp%,%Boot_sys%\shell32.dll,%DistLang%:%FallBack%
// %DistLang%=es-MX etc.--> %DistTmp%=es-ES
// %DistLang%=fr-CA 	--> %DistTmp%=fr-FR
String,%Var%,LEFT,%DistTmp%,2
If,%Var%,=,es,Then,Set,%DistTmp%,es-ES
If,%Var%,=,fr,Then,Set,%DistTmp%,fr-FR
If,ExistFile,%Install_Sys%\DriverStore\%DistTmp%\netnwifi.inf_loc,Then
	FileCopy,%Install_Sys%\DriverStore\%DistTmp%\netnwifi.inf_loc,		%Target_Sys%\DriverStore\%DistLang%\
End
// Windows Vista, 7
// ----------------
If,%NT%,<,6.2,Then
	ReqFile,ndisuio.inf
	ReqFile,netserv.inf
End
// Windows 7, 8/8.1, 10/11
// -----------------------
If,%NT%,>,6.0,Then
	ReqFile,ndiscap.inf
	ReqFile,netvwifibus.inf
	ReqFile,netvwififlt.inf
	ReqFile,netvwifimp.inf
	
	DirCopy,%Install_Sys%\DriverStore\FileRepository\netvwifibus.inf_*,	%Target_Sys%\DriverStore\FileRepository\

	FileCopy,%Install_Sys%\DriverStore\%DistLang%\netvwifibus.inf_*,	%Target_Sys%\DriverStore\%DistLang%
End
// Windows 8/8.1, 10/11
// --------------------
If,%NT%,>,6.1,Then
	DirCopy,%Install_Sys%\DriverStore\FileRepository\netnwifi.inf_*,	%Target_Sys%\DriverStore\FileRepository\
	DirCopy,%Install_Sys%\DriverStore\FileRepository\netvwififlt.inf_*,	%Target_Sys%\DriverStore\FileRepository\
	DirCopy,%Install_Sys%\DriverStore\FileRepository\netvwifimp.inf_*,	%Target_Sys%\DriverStore\FileRepository\

	FileCopy,%Install_Sys%\DriverStore\%DistLang%\netnwifi.inf_*,		%Target_Sys%\DriverStore\%DistLang%
	FileCopy,%Install_Sys%\DriverStore\%DistLang%\netvwififlt.inf_*,	%Target_Sys%\DriverStore\%DistLang%
	FileCopy,%Install_Sys%\DriverStore\%DistLang%\netvwifimp.inf_*,		%Target_Sys%\DriverStore\%DistLang%
End

// Sys-Dateien | Sys files
// +++++++++++++++++++++++
SetReqFile,%Install_sys%\drivers,%Distlang%,%FallBack%,%target_sys%\drivers
// Windows Vista, 7, 8/8.1, 10/11
// ------------------------------
ReqFile,http.sys,1
ReqFile,ipnat.sys,1
ReqFile,ndisuio.sys
ReqFile,nwifi.sys,1
If,ExistFile,%Install_sys%\drivers\srv.sys,Then,		ReqFile,srv.sys
ReqFile,srv2.sys
ReqFile,srvnet.sys
ReqFile,tcpipreg.sys
ReqFile,tdx.sys
ReqFile,tunnel.sys,1
// Windows 7, 8/8.1, 10/11
// -----------------------
If,%NT%,>,6.0,Then
	ReqFile,ndiscap.sys,1
	ReqFile,vwifibus.sys,1
	ReqFile,vwififlt.sys
	ReqFile,vwifimp.sys
	FileCopy,%Install_sys%\drivers\vwifibus.sys,%target_win%\inf\
End
// Windows 7
// ---------
If,%NT%,=,6.1,Then
	ReqFile,wfplwf.sys
End
// Windows 8/8.1, 10/11
// --------------------
If,%NT%,>,6.1,Then
	ReqFile,ndisimplatform.sys,1
	ReqFile,wfplwfs.sys
End
// Windows 10/11
// -------------
If,%NT%,=,10.0,Then
	ReqFile,WdiWiFi.sys
End
